﻿<src:WpfConfiguration x:Class="TwilioMayhem.Wpf.CallConfig"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:src="clr-namespace:MayhemWpf.UserControls;assembly=MayhemWpf"
             Width="400">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="140" />
            <ColumnDefinition Width="260" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="0">Twilio SID:</TextBlock>
        <TextBox TextChanged="Box_TextChanged" Name="TwilioSIDBox" Grid.Column="1" Grid.Row="0" />

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="1">Twilio Token:</TextBlock>
        <TextBox TextChanged="Box_TextChanged" Name="TwilioTokenBox" Grid.Column="1" Grid.Row="1" />

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="2">To telephone number:</TextBlock>
        <TextBox TextChanged="Box_TextChanged" Name="TelephoneNumberBoxTo" Grid.Column="1" Grid.Row="2" />

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="3">From telephone number:</TextBlock>
        <TextBox TextChanged="Box_TextChanged" Name="TelephoneNumberBoxFrom" Grid.Column="1" Grid.Row="3" />

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="4">TwiML Uri:</TextBlock>
        <TextBox TextChanged="Box_TextChanged" Name="VoiceXmlUriBox" Grid.Column="1" Grid.Row="4" />

        <TextBlock Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.ColumnSpan="2" TextWrapping="Wrap" Grid.Row="5">
            Learn more about Twilio or sign up for a free account at
            <Hyperlink 
                NavigateUri="http://www.twilio.com/"
                RequestNavigate="Hyperlink_RequestNavigate">
                www.twilio.com
            </Hyperlink>.
        </TextBlock>
    </Grid>
</src:WpfConfiguration>